import { GetVrInfo } from "~/api";

export const useContent = () => {
    const detail = ref({});
    const list = [
        {
            id: 1,
            content: "将开机的VR设备通过数据线与PC相连",
        },
        {
            id: 2,
            content: "将下载的VR播放器拷贝到一体机中",
        },
        {
            id: 3,
            content: "在VR一体机中的文件管理--安装包 - VRClient.apk",
        },
        {
            id: 4,
            content: "点击安装",
        },
        {
            id: 5,
            content: "在资源库 - 未知来源应用中找到安装的应用",
        },
        {
            id: 6,
            content: "开始体验",
        },
    ];

    const GetInfo = async () => {
        const res = await GetVrInfo({ type: 2 });
        if (res.code == 200) {
            detail.value = res.data;
        }
    };

    return {
        detail,
        list,
        GetInfo,
    };
};
